﻿#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;

class Maker {
public:
	Maker() {
		cout << "无参构造函数" << endl;
	}
	Maker(int a) {
		this->a = a;
	}
	Maker(const Maker &m) {
		a = m.a;
	}
	~Maker() {
		cout << "析构函数" << endl;
	}
private:
	int a;
};

void test01() {
	Maker(); // 匿名函数的生命周期是当前行 
	cout << "test01函数调用结束" << endl;
}

int main()
{

	test01(); 

	system("pause");
	return EXIT_SUCCESS;
}